@extends('layout.layout')
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<div>
<h1>球队展示</h1>

</div>

	<table class="table table-hover" style="margin-top: 50px">
  	<tr>
  		<th>ID</th>
  		<th>对赛对阵</th>
  		<th>比赛时间</th>
  		<th>操作</th>
  	</tr>
  	@foreach($data as $v)
  	<tr>
  		<td>{{$v->match_id}}</td>
  		<td>{{$v->tA_name}}VS{{$v->tB_name}}</td>
      <td>{{date("Y-m-d H:i:s",$v->start_time)}}</td>
  		<td>
        <button class="btn btn-success"><a href="{{url('admin/dataAdd',['match_id'=>$v->match_id])}}">比赛数据添加</a></button>
        <button class="btn btn-danger"><a href="{{url('admin/dataIndex')}}">比赛数据展示</a></button>  
        <button class="btn btn-success"><a href="#">编辑</a></button>
  			<button class="btn btn-danger"><a href="#">删除</a></button>			
  		</td>
  	</tr>
  	@endforeach
	</table> 
</body>
</html>
